/*******************************************************************************
 * Copyright (c) 2008 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *     Bartosz Michalik (bartosz.michalik@gmail.com)
 *******************************************************************************/
package org.eclipse.pde.internal.ui.editor.product.customization;

import org.eclipse.jface.action.Action;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.pde.internal.core.iproduct.ICustomizationInfo;

/**
 * Generic customization action
 * @author Bartosz Michalik
 *
 */
public abstract class TransformationAction extends Action {

	protected ICustomizationInfo fInfo;
	protected IStructuredSelection fSelection;

	abstract public void run();

	/**
	 * 
	 * @param name of the action
	 * @param info that can be used in specific actions
	 */
	public TransformationAction(String name, ICustomizationInfo info, IStructuredSelection selection) {
		super(name);
		this.fInfo = info;
		this.fSelection = selection;
	}

}
